package com.rmondjone.face.ViewModel

/**
 * copyright：
 * @author：anthui creation date： .
 * @since: 1.0.0
 * @describe:
 */
class FaceConsulationModel {

//    fun upFile(path: String, onCallBack: OnCallBack<Any>) {
//
//        HttpManager.getService(CommonService::class.java).acupoint(path).enqueue(object : retrofit2.Callback<HttpResult<Any>> {
//            override fun onFailure(call: Call<HttpResult<Any>>, t: Throwable) {
//                onCallBack.onFailure(-1, "错误", t)
//
//                Log.e("msg", "上传----------- 失败")
//                t.printStackTrace()
//            }
//
//            override fun onResponse(call: Call<HttpResult<Any>>, response: Response<HttpResult<Any>>) {
//                Log.e("msg", "上传----------- 上传成功- " + response.body()?.data)
//                response.body()?.let {
//                    if (it.code == 1 && it.data != null) {
//
//                        onCallBack.onSuccess(it.data!!)
//
//                        return
//                    } else {
//                        onCallBack.onFailure(it.code, it.message)
//
//                    }
//
//                }
//                onCallBack.onFailure(-1, "错误")
//
//
//                Toast.makeText(MyApplication.application, response.body()?.message
//                        ?: "", Toast.LENGTH_SHORT).show()
//            }
//
//        })
//    }


}